@echo off

set td_path=.\TDtable

echo del file

if exist ..\0301_tableConfig.xml  del ..\0301_tableConfig.xml /q

echo generate config file begin .......
echo ^<?xml version="1.0" encoding="utf-8"?^>>>..\0301_tableConfig.xml
echo ^<Tables^>>>..\0301_tableConfig.xml

echo generate tdtable config file
for /f "delims=" %%i in ('dir /b /a-d /s "%td_path%"') do echo 	^<TDTable code="%%~ni"^/^>>>..\0301_tableConfig.xml

echo ^<^/Tables^> >>..\0301_tableConfig.xml

echo generate config file end

pause

@echo on